]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
osd: Restyle OSD display popup
authorSam Hewitt <sam@snwh.org>
Tue, 19 Apr 2022 16:38:37 +0000 (14:08 -0230)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 24 Apr 2022 16:19:16 +0000 (18:19 +0200)
- remove class from label box
- new style for label itself

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2277>

data/theme/gnome-shell-sass/widgets/_osd.scss
js/ui/osdMonitorLabeler.js

index e4fb0e57e2d113418ab8bcb3a117e2672b8b8185..a8d1a55f63c24a1d86109c45e519e2fb305cac57 100644 (file)
@@ -14,8 +14,6 @@ $osd_levelbar_height:6px;
 
   StIcon { icon-size:$large_icon_size;}
 
-  .osd-monitor-label { font-size: 3em; }
-  
   StLabel {
     &:ltr { margin-right: 6px; }
     &:rtl { margin-left: 6px; }
@@ -37,6 +35,17 @@ $osd_levelbar_height:6px;
   }
 }
 
+// Monitor number label
+.osd-monitor-label { 
+  @extend %osd_panel;
+  border-radius: $modal_radius;
+  font-size: 3em;
+  font-weight: bold;
+  margin: $base_margin * 3;
+  text-align: center;
+  min-width: 1.3em;
+}
+
 /* Pad OSD */
 .pad-osd-window {
   padding: 32px;
index 9fdf3e88bba8c73715936eaa135880ad1c17fc35..540af75ad3cf8aefd27e0c6739caf96e8c4acd8e 100644 (file)
@@ -13,7 +13,6 @@ class OsdMonitorLabel extends St.Widget {
         this._monitor = monitor;
 
         this._box = new St.BoxLayout({
-            style_class: 'osd-window',
             vertical: true,
         });
         this.add_actor(this._box);